翻訳と辞書
Words near each other
・ Clonfert
・ Clonfert Cathedral
・ Clonfin Ambush
・ Clonfinlough Stone
・ Clonglash
・ Clongowes Wood College
・ Clongriffin
・ Clongriffin railway station
・ Clonguish GAA
・ Cloniatarphes
・ Clonidine
・ Clonie Gowen
・ Clonin Earthworks
・ Cloning
・ Cloning (disambiguation)
Cloning (programming)
・ Cloning Clyde
・ Cloning vector
・ Cloniocerini
・ Cloniocerus albosticticus
・ Cloniocerus bohemanni
・ Cloniocerus constrictus
・ Cloniocerus hystrix
・ Cloniocerus kraussii
・ Cloniocerus lamellicornis
・ Cloniocerus ochripennis
・ Cloniophora
・ Clonitazene
・ Clonius
・ Clonixin


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Cloning (programming) : ウィキペディア英語版
Cloning (programming)

In computer science, cloning refers to the making of an exact copy of an object, frequently under the paradigm of instance-based programming, or object-oriented programming (OOP).
==Shallow copies==
In most programming languages (exceptions include: Ruby), primitive types such as double, float, int, long, etc. simply store their values somewhere in the computer's memory (often the call stack). By using simple assignment, you can copy the contents of the variable to another one:
Copying primitive types in Java:

int original = 42;
int copy = 0;
copy = original;

Many OOP programming languages (including Java, D, ECMAScript, and C#) make use of object references. Object references, which are similar to pointers in other languages, allow for objects to be passed around by address so that the whole object need not be copied.
A Java example, when "copying" an object using simple assignment:

Object original = new Object();
Object copy = null;
copy = original; // does not copy object but only its reference

The object is not duplicated, the variables 'original' and 'copy' are actually referring to the same object.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Cloning (programming)」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.